using System;
using AzureDiagMon.Common.Mvvm;
using AzureDiagMon.Common.Mvvm.Interfaces;
using Ninject;

namespace AzureDiagMon.ViewModels
{
    [ViewModel("SampleView")]
    public class SampleViewModel : ViewModel
    {
        [Inject]
        public MainViewModel Main { get; private set; }

        public SampleViewModel()
        {
            if (IsInDesignMode)
            {

            }
            else
            {
                
            }
        }

        #region Extended RaisePropertyChanged

        private void RaisePropertyChanged(Func<SampleViewModel, string> selector)
        {
            var propertyName = selector.Invoke(this);
            if (!String.IsNullOrEmpty(propertyName))
                RaisePropertyChanged(propertyName);
        }

        #endregion
    }
}